package com.angel.resourceBundle.domain;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.angel.architecture.persistence.base.PersistentObject;


/**
 * If you want to implements a new class to property value object, yo must inherit {@link Texto}.
 *
 * @author William
 * @since 10/November/2007
 */
@Entity
public class Texto extends PersistentObject {

	private static final long serialVersionUID = -4661906639856549214L;

	@Column(length = 1500)
	private String texto;

	@Column(nullable = false, unique = false, updatable = true)
	private Boolean labelText = false;

	public Texto(){
		super();
	}

	public Texto(String text){
		super();
		this.setTexto(text);
	}

	public Texto(String text, Boolean label){
		super();
		this.setTexto(text);
	}


	/**
	 * @param labelText the labelText to set
	 */
	public void setLabelText(Boolean labelText) {
		this.labelText = labelText;
	}

	/**
	 * @return the labelText
	 */
	public Boolean getLabelText() {
		return labelText;
	}

	/**
	 * @param texto the texto to set
	 */
	public void setTexto(String texto) {
		this.texto = texto;
	}

	/**
	 * @return the texto
	 */
	public String getTexto() {
		return texto;
	}


}
